<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>截断QQ字符</title>
	</head>
	<body>
		<script>
			var str = "1743524594@qq.com";
			var atindex = str.indexOf("@");
			alert(str.substring(0,atindex));
		</script>
	</body>
</html>
